package top.cluski.feieprint.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.time.LocalDateTime;

@Table("printer")
@Data
public class PrinterEntity {

    @Id(keyType = KeyType.Auto)
    Integer id;

    @Column("name")
    String name;

    @Column("printer_user")
    String printerUser;

    @Column("printer_ukey")
    String printerUkey;

    @Column("printer_sn")
    String printerSN;

    @Column("label_width")
    Integer labelWidth;

    @Column("label_height")
    Integer labelHeight;

    @Column("print_settings")
    String printSettings;

    @Column(value = "create_time", onInsertValue = "now()")
    LocalDateTime createTime;

    @Column(value = "update_time", onUpdateValue = "now()")
    LocalDateTime updateTime;
}
